<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Detail extends CI_Controller {

	public function index()
	{
				$id = $_GET['id'];
		$a = $this->m_model->getRow('select * from blogs where id=' . $id .' limit 1');
		//print_r($a);
		//exit;
		   
    $data['blog'] = $a;
		$this->load->view('detail', $data);
	}
}
